package com.hs.service;

import com.hs.entity.TbMenu;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface MenuService {
    public Map<String,Object> getMenus(Integer roleId);

    public String queryMenuIdsByRoleId(Integer roleId) throws SQLException;
    public Integer deleteById(Integer id)throws SQLException;
    public Integer deleteBatch(String ids)throws SQLException;
    public Integer createMenu(String name)throws SQLException;
    public TbMenu queryById(Integer id) throws SQLException;
    public Integer updateMenu(Map<String,String[]> map)throws SQLException;
    List<Map<String,Object>> queryAll();

}
